import requests


def get_wms_token():
    captchaimage=requests.get("http://192.168.10.130:9632/captchaImage")
    res_uuid = captchaimage.json()
    uuid = res_uuid["uuid"]
    response = requests.post(url="http://192.168.10.130:9632/login",
                             json={
                                    "username": "admin",
                                    "password": "e10adc3949ba59abbe56e057f20f883e",
                                    "code": "2",
                                    "uuid": uuid
                                  })
    res=response.json()
    return "Bearer " + res['token']


# print(get_wms_token())

